<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- 列表渲染 -->
		<div id="app">
			<ul>
				<li v-for="item,index in array">
					{{ parentMessage }} - {{index}}:{{item.message}}
				</li>
			</ul>
			
			<ul>
				<li v-for="value,key in object">
					{{key}}:{{value}}
				</li>
			</ul>
		</div>
		
		<script type="text/javascript">
			var vm = new Vue({
				el:"#app",
				data:{
					parentMessage: 'Parent',
					array:[
						{message:'peng'},
						{message:'yang'},
					],
					
					object:{
						title:'penggang',
						content:'learning vue',
						date:'2019/11/07'
					}
				}
			})
			
		</script>
	</body>
</html>
